package com.egame.manage.biz.server.uc;

import cn.egame.common.exception.ExceptionCommonBase;

public class UserServiceImpl {
	private static UserServiceImpl instance = null;
	private static byte[] SyncRoot = new byte[1];
	private UserServiceDao oldUserDao = null;
	
	public static UserServiceImpl getInstance() throws ExceptionCommonBase {
		if (instance == null) {
			synchronized (SyncRoot) {
				if (instance == null) {
					instance = new UserServiceImpl();
				}
			}
		}
		return instance;
	}
	
	public UserServiceImpl() throws ExceptionCommonBase{
		super();
		oldUserDao = new UserServiceDao("user_old");
	}
	
	public String getCnNameById(long id) throws ExceptionCommonBase {
		return oldUserDao.getCnNameById(id);
	}
	
}
